<?php
/**
 * Created by PhpStorm.
 * User: chindor
 * Date: 2017/5/19
 * Time: 11:01
 */

namespace app\api\modules\v1\market\models;


class SessionMessage
{
    public static function setMess($message,$k='error')
    {
        $session = \yii::$app->session;
        $session -> setFlash($k,$message);
    }

    public static function getMess($k='error')
    {
        return \yii::$app->session->getFlash($k);
    }
}